use macros::base_model;
use sea_orm::entity::prelude::*;
use serde::{Deserialize, Serialize};

#[base_model]
#[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel, Serialize, Deserialize)]
#[sea_orm(table_name = "project", comment = "系统配置表")]
pub struct Model {
    #[sea_orm(column_type = "Text", not_null, comment = "项目名称")]
    pub name: String,

    #[sea_orm(column_type = "Text", not_null, comment = "项目描述")]
    pub description: String,

    #[sea_orm(column_type = "Text", not_null, comment = "项目路径")]
    pub base_dir: String,

    #[sea_orm(column_type = "Integer", nullable, comment = "项目路径")]
    pub random: Option<i32>,
}

#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {}
